package com.jiutong.meipenggang.http.model.requests;


import com.jiutong.meipenggang.http.RetrofitHandle;
import com.jiutong.meipenggang.http.SubscribeHandler;
import com.jiutong.meipenggang.http.model.services.BindingBankCardService;
import java.util.Map;

import rx.Observable;
import rx.Subscriber;

/**
 * Created by suxi on 2017/5/27.
 */

public class BindingBankCardRequest extends SubscribeHandler {

    /**
     * 绑定银行卡
     */
    public void bindingBankCard(Subscriber subscriber, Map<String, Object> fields) {

        handleFields(fields);
        Observable observable = RetrofitHandle.getInstance().retrofit.create(BindingBankCardService.class)
                .bindingBankCard(fields);

        toSubscribe(observable,subscriber);
    }


}
